<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/templateFormulario.xhtml">
	
	<ui:define name="formContent">
		<f:loadBundle basename="props.lenguajes.messages" var="msg"/>
		<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
		
		<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>
		
		
		
		<p:dialog modal="true" widgetVar="statusDialog" header="Processing"   
		        draggable="false" closable="false">  
		    <p:graphicImage value="../../resources/img/ajaxloadingbar.gif" />
		</p:dialog>
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirmation" modal="true" height="110" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages2" showDetail="true" autoUpdate="true" closable="true" />
	    	<p:commandButton id="btnContinue" value="#{msg['message.devLlid.actionBtnContinuar']}"
						action="#{resultadoMB.continuar}"
						style="width:100%;" />
		</p:dialog>
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirmCancel" modal="true" height="80" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages3" showDetail="true" autoUpdate="true" closable="true" />
		    <h:panelGrid columns="2" styleClass="centerContent">
		    	<p:commandButton id="btnContinueCancel" value="#{msg['message.cancelMessage2']}"
							action="#{resultadoMB.continueCancel}"/>
				<p:commandButton id="btnCancelCancel" value="#{msg['message.cancelMessage']}"
							action="#{resultadoMB.cancelCancel}"/>
		    </h:panelGrid>
		</p:dialog>
		
		<p:dialog header="#{msg['message.devLlid.confirmationDialog']}" widgetVar="dlgConfirmRegresar" modal="true" height="80" closable="false" styleClass="centerContent" >  
		    <p:messages id="messages4" showDetail="true" autoUpdate="true" closable="true" />
		    
		    
		    
		    <h:panelGrid columns="1">
		    
		    	<h:panelGrid columns="1" styleClass="centerContent">
			    	<p:inputTextarea></p:inputTextarea>
			    </h:panelGrid>
			    
			    <h:panelGrid columns="2" styleClass="centerContent">
			    	<p:commandButton id="btnContinueRegresar" value="#{msg['message.devLlid.actionTitleRegresar']}"
								action="#{resultadoMB.continueRegresar}"/>
					<p:commandButton id="btnCancelRegresar" value="#{msg['message.cancelMessage']}"
								action="#{resultadoMB.cancelRegresar}"/>
			    </h:panelGrid>
		    
		    </h:panelGrid>
		    
		    
		    
		    
		</p:dialog>
		
		
		<h:panelGrid columns="2">
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleNctrl']}"/>
				<p:inputText value="#{resultadoMB.vistaNumeroControl}" id="ncInput" size="25" disabled="true" />
			</h:panelGrid>
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleNombre']}"/>
				<p:inputText value="#{resultadoMB.vistaNombre}" id="nameInput" size="25" disabled="true"/>
			</h:panelGrid>
		</h:panelGrid>
		
		<p:separator/>
		
		<h:panelGrid columns="1" style="font-size: 12px; font-weight:bold;" >
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel value="#{msg['message.devLlid.titleResultado']}"/>
				<p:selectOneMenu rendered="#{resultadoMB.disableResultadoList}" id="resultadoList" value="#{resultadoMB.vistaResultado}">  
	                <f:selectItem itemLabel="Choose option" itemValue="" />  
	                <f:selectItems value="#{resultadoMB.generacioList}" /> 
	            </p:selectOneMenu>
			</h:panelGrid>
			<h:panelGrid columns="2" style="font-size: 12px; font-weight:bold;">
				<p:outputLabel rendered="#{resultadoMB.disableReturn}" value="#{msg['message.devLlid.titleReporteResultado']}"/>
				<p:fileUpload rendered="#{resultadoMB.disableReturn}" mode="advanced" style="width:525px; font-size: 9px;"  showButtons="false"
			            update="messages" auto="true" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
			  	<p:outputLabel rendered="#{resultadoMB.disableReEvaluacion}" value="#{msg['message.devLlid.titleReporteResultadoReEvaluacion']}"/>
			  	
			  	<p:selectOneMenu rendered="#{resultadoMB.disableReEvaluacion}" id="reEvaluacionList" value="#{resultadoMB.vistaResultado}">  
	                <f:selectItem itemLabel="Choose option" itemValue="" />  
	                <f:selectItems value="#{resultadoMB.generacioList}" /> 
	            </p:selectOneMenu>
			  	<p:growl id="messagesFile" showDetail="true"  />
			</h:panelGrid>
		</h:panelGrid>
		
		<p:separator/>
		
		<div id="mainFormBotones">
            <h:panelGrid id="pnlGridBotones" styleClass="centerContent">
				<ui:include src="/plantilla/botones.xhtml" />
            </h:panelGrid>
		</div>
		
		
	</ui:define>
</ui:composition>
